﻿@{
    ViewBag.Title = "ChangePassword";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>ChangePassword</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>User</legend>
        
        <div class="editor-label">
            @Html.Label("Password", Translator.Translate("user_edit_pass"))
        </div>
        <div class="editor-field">
            @Html.Password("Password")
        </div>
        
        <div class="editor-label">
            @Html.Label("ConfirmPassword", Translator.Translate("user_edit_confirm_pass"))
        </div>
        <div class="editor-field">
            @Html.Password("ConfirmPassword")
            @Html.ValidationMessage("Password")
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
